﻿@model KXCXW.Web.Models.LogOnModel
@{
    ViewBag.Title = "登录开心促销网";
}
<div class="logincontent">
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <div style="position: absolute; height: 200px; width: 415px; top: 180px; right: 48px;">
        @using (Html.BeginForm())
        {
            <div>
                <fieldset style="border: 0px;">
                    <div>
                        @Html.ValidationSummary(true)
                        @if (ViewBag.ActiveError != null && ViewBag.ActiveError == "true")
                        {
                            kxcxw.Data.Entities.SysUserInfo user = (kxcxw.Data.Entities.SysUserInfo)ViewBag.User;
                            <span style="color: #999999; margin-left:20px; margin-bottom:5px;">如果没有收到邮件 请点击 @Html.ActionLink("重新发送", "SendMail", "Account", new { email = user.Email, userID = user.UserID, verification = user.VerificationCode, userName = Model.UserName }, new { style="color:#999999;"})</span> 
                        }
                    </div>
                    <div class="field">
                        <div class="editor-label">
                            登 录 名：
                        </div>
                        <div class="editor-field">
                            @Html.TextBoxFor(m => m.UserName)
                            @Html.ValidationMessageFor(m => m.UserName)
                        </div>
                    </div>
                    <div class="field">
                        <div class="editor-label">
                            密　　码：
                        </div>
                        <div class="editor-field">
                            @Html.PasswordFor(m => m.Password)
                            @Html.ValidationMessageFor(m => m.Password)
                        </div>
                        <label>@Html.ActionLink("忘记密码？", "index")</label>
                    </div>
                    <div style="float:left;margin-left:77px; display:inline;">
                        <input class="btn_mid" type="submit" value="登  录" />
                                                <div class="right_input">
                            @Html.CheckBoxFor(m => m.RememberMe)
                            @Html.LabelFor(m => m.RememberMe)
                        </div>
                    </div>
                    <div class="field">
                        <div class="text">还没有开心促销网账号，点击 @Html.ActionLink("30秒注册", "Register", "Account") @Html.ActionLink("返回首页", "Index", "Home")</div>
                    </div>
                </fieldset>
            </div>
        }
    </div>
</div>
